//
//  UIButton+ZJIconfont.h
//  IconfontDemo
//
//  Created by ZJ on 2018/7/20.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 根据字体图标创建button
 */
@interface UIButton (ZJIconfont)

- (instancetype)initWithFrame:(CGRect)frame unicode:(NSString *)code;
- (instancetype)initWithFrame:(CGRect)frame unicode:(NSString *)code iconfontSize:(CGFloat)size;
- (instancetype)initWithFrame:(CGRect)frame unicode:(NSString *)code titleColor:(UIColor *)color;
- (instancetype)initWithFrame:(CGRect)frame unicode:(NSString *)code titleColor:(UIColor *)color iconfontSize:(CGFloat)size;

/**
 根据字体图标（iconfont）unicode码初始化一个button
 
 @param frame button frame              default （0， 0， 44，44）
 @param code 字体图标的unicode
 @param color 字体图标颜色                default darkGrayColor
 @param highlightedColor 字体图标高亮颜色  default lightGrayColor
 @param size 字体图标大小                 default 44
 @return button 对象
 */
- (instancetype)initWithFrame:(CGRect)frame unicode:(NSString *)code titleColor:(UIColor *)color titleHighlightedColor:(UIColor *)highlightedColor iconfontSize:(CGFloat)size;

@end
